package com.zsh.controller;

import com.zsh.entity.OrderMaster;
import com.zsh.service.OrderMasterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by Administrator on 2018/6/10 0010.
 */
@Controller
@RequestMapping("orderMaster")
public class OrderMasterController {

    @Autowired
    private OrderMasterService orderMasterService;

    @RequestMapping("/findOrderMasterByBuyerName")
    @ResponseBody
    public List<OrderMaster> findOrderMasterByBuyerName(){
       return orderMasterService.findByBuyerName("zsh");
    }


}
